package com.solution.admin.customer.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.solution.admin.customer.entity.DeliverFreeAreaEntity;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 客户免运费区域接口service接口层
 * @author solin
 * @date 2017-09-22 11:56:47
 */
public interface DeliverFreeAreaService {

	/**
	 * 保存客户免运费区域
	 * @param deliverFreeAreaEntity 客户免运费区域实体
	 * @return Long 返回插入客户免运费区域记录ID
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public long saveDeliverFreeArea(DeliverFreeAreaEntity deliverFreeAreaEntity);
	
	
	/**
	 * 删除客户免运费区域
	 * @param 
	 * @return int 返回删除记录条数
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public int deleteDeliverFreeAreaById(long id);
	
	
	/**
	 * 根据ID查询客户免运费区域
	 * @param id 客户免运费区域id
	 * @return DeliverFreeAreaEntity 客户免运费区域对象
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public DeliverFreeAreaEntity getDeliverFreeAreaById(Long id);

	/**
	 * 更新客户免运费区域
	 * @param DeliverFreeAreaEntity 客户免运费区域对象
	 * @return int 更新是否成功，>1代表更新成功
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public int updateDeliverFreeArea(DeliverFreeAreaEntity deliverFreeAreaEntity);

	/**
	 * 分页查询客户免运费区域
	 * @param pageParam 分页参数
	 * @param paramMap 查询参数
	 * @return PageBean 分页参数和分页数据
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public PageBean listDeliverFreeAreaPage(PageParam pageParam, Map<String, Object> paramMap);
	
	/**
	 * 根据条件查询客户免运费区域
	 * @param param
	 * @return 客户免运费区域列表
	 * @author solin
	 * @date 2017-09-22 11:56:47
	 */
	public List<DeliverFreeAreaEntity> listDeliverFreeArea(Map<String, Object> param);
	
	
	
	
	
}
